import axios from '../../../../utils/axios'
Page({
  data: {
    companyData: ''
  },
  onLoad: function (options) {
    this.getCompanyInfo();
  },
  async getCompanyInfo() {
    let res = await axios({
      url: '/api/company/parent',
      data: {

      },
      header: {
        'Authorization': wx.getStorageSync('token')
      }
    });
    console.log('############', res.data);
    if (res.statusCode === 200)
      this.setData({
        companyData: JSON.parse(res.data.value)
      })
  }
})